//
//
//  Created by apple on 15/8/28.
//  Copyright (c) 2015年 lyq. All rights reserved.
//
//          弹出框

#import <UIKit/UIKit.h>


#define MAIN_ALERT_HEIGHT 170
#define MAIN_ALERT_MARGIN_LEFT 40

typedef NS_ENUM(NSInteger,AlertType){
    AlertTypeMessage = 0,//提示框
};


@class AlertView;

@protocol AlertViewDelegate <NSObject>
@optional
- (void)alertViewDelegate:(AlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex;
@end


@interface AlertView : UIView {
    UILabel *lab_title;
    UILabel *lab_content;
}

@property(nonatomic,assign)id<AlertViewDelegate> alertViewDelegate;

//弹出主视图
@property(nonatomic,retain)UIScrollView *mainAlertView;
//主题
@property(nonatomic,retain)NSString *mainTitle;
@property(nonatomic,retain)NSString *subTitle;

@property(nonatomic,assign)AlertType alertType;

//@property(nonatomic,retain)CUCheckButtonGroup *cuGroup;

//确定和取消按钮
@property(nonatomic,retain)UIButton *comfirBtn;
@property(nonatomic,retain)UIButton *cancleBtn;


-(instancetype)initWithTitle:(NSString*)_title textFieldText:(NSString *)_text type:(AlertType)type;

-(void)show;
-(void)dismis;


@end
